<template>
  <div>
    <div class="c">
      我的购物车
      <div class="y">{{ number }}</div>
      <div class="iconfont icon-gouwuchekong"></div>
    </div>
  </div>
</template>
 
<script>
export default {
  props: {
    // 加入购物车的种类数
    number: "",
  },
};
</script>

<style lang="less" scoped>
.c,
.y {
  user-select: none;
}
.y {
  position: absolute;
  left: 115px;
  top: -6px;
  color: #fff;
  text-align: center;
  line-height: 18px;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 9px 9px 9px 0;
  background-color: #ff6c37;
}
.c {
  position: absolute;
  top: 40px;
  color: #b71c1c;
  right: -200px;
  width: 130px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  font-size: 12px;
  border-radius: 10px;
  border: 2px solid #b71c1c;
  .iconfont {
    position: absolute;
    right: 10px;
    top: 0px;
    font-size: 14px;
  }
}
.c:hover {
  color: #fff;
  cursor: pointer;
  background-color: #b71c1c;
}
.c .iconfont:hover {
  color: #fff;
}
</style>